//package edu.czjtu.mq;
//
//
////import edu.czjtu.config.RabbitMqConfig;
//import edu.czjtu.dao.BlogDao;
//import edu.czjtu.model.pojo.Blog;
////import org.springframework.amqp.rabbit.annotation.RabbitHandler;
////import org.springframework.amqp.rabbit.annotation.RabbitListener;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Component;
//
///**
// * 更新新闻的队列消费者
// *
// * @blame mqpearh
// */
//@Component
////@RabbitListener(queues = RabbitMqConfig.BLOG_QUEUE)
//public class BlogListener {
//
//    @Autowired
//    private BlogDao blogDao;
//
////    @RabbitHandler
//    public void updateBlog(Blog blog) {
//        blogDao.updateBlog(blog);
//    }
//}
